/**   
 * 项目名：五位一体化工安全信息平台
 * 日期：    2019-12-06 15:05:46  
 * Copyright (c) 2015- joysuch-版权所有     
 */

package com.joysuch.wwyt.bp.repository;

import com.joysuch.wwyt.bp.entity.BpWorkSafetyAudit;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.querydsl.QuerydslPredicateExecutor;

/**
 * BpWorkSafetyAuditDao
 * 
 */
public interface BpWorkSafetyAuditDao
        extends JpaRepository<BpWorkSafetyAudit, Long>, QuerydslPredicateExecutor<BpWorkSafetyAudit> {
    public Page<BpWorkSafetyAudit> findAll(Specification<BpWorkSafetyAudit> spec, Pageable pageable);

    public BpWorkSafetyAudit save(BpWorkSafetyAudit bean);

    public void delete(BpWorkSafetyAudit bean);

    public BpWorkSafetyAudit findByTypeAndWorkId(String type, Long workId);

    public void deleteByTypeAndWorkId(String type, Long workId);

}
